package biz.core.service.impl;

import java.util.List;

import biz.core.dao.AreaDao;
import biz.core.domain.Area;
import biz.core.exception.DAOException;
import biz.core.exception.ServiceException;
import biz.core.service.AreaService;

public class AreaServiceImpl implements AreaService{
	private AreaDao areaDao;

	public List<Area> findAll() throws ServiceException {
		try {
			return areaDao.findAll();
		} catch (DAOException e) {
			throw new ServiceException(e.getMessage(), e);
		}
	}


	public AreaDao getAreaDao() {
		return areaDao;
	}

	public void setAreaDao(AreaDao areaDao) {
		this.areaDao = areaDao;
	}
	
	

}
